From 37307651ac01a283059f5bd9c9bfacfc896c617a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 1 Apr 2009 11:46:31 +0100 Subject: [PATCH] xend: Balloon 4MB memory slop when creating a domain I've found some problems when running 2 guests with and then trying to install a new machine (no matter whether using virt-manager or virt-install). Signed-off-by: Michal Novotny --- tools/python/xen/xend/XendDomainInfo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 8cc2084acf..815fed65e0 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2253,8 +2253,9 @@ class XendDomainInfo: # There is an implicit memory overhead for any domain creation. This # overhead is greater for some types of domain than others. For # example, an x86 HVM domain will have a default shadow-pagetable - # allocation of 1MB. We free up 2MB here to be on the safe side. - balloon.free(2*1024, self) # 2MB should be plenty + # allocation of 1MB. We free up 4MB here to be on the safe side. + # 2MB memory allocation was not enough in some cases, so it's 4MB now + balloon.free(4*1024, self) # 4MB should be plenty ssidref = 0 if security.on() == xsconstants.XS_POLICY_USE: -- 2.30.2